package org.jeecg.modules.demo.app.mapper;

import org.apache.ibatis.annotations.Param;
import org.jeecg.modules.demo.allvipcard.entity.AllVipcard;
import org.jeecg.modules.demo.baseorde.entity.BaseOrder;
import org.jeecg.modules.demo.reserverecord.entity.ReserveRecord;
import org.jeecg.modules.demo.storeemplee.entity.StoreEmplee;
import org.jeecg.modules.demo.storeproject.entity.StoreProject;
import org.springframework.stereotype.Repository;

import java.time.LocalDate;
import java.util.Date;
import java.util.List;
import java.util.Map;

@Repository
public interface AppMapper {

    List<Map<String, Object>> listMemberProject(Map<String, Object> map);

    List<Map<String, Object>> listMemberCommodity(@Param("map") Map<String, Object> map);

    List<BaseOrder> scanOvertimeOrder();

    void updateOvertimeVipOrder();

    void setNewMemberToOld();

    int updatePraiseNumById(int num, String id);

    int updateForwardNumById(int num, String id);

    List<AllVipcard> getCard(String storeId, String cardId);

    List<ReserveRecord> listByEmployeeDate(String storeId, String projectId, LocalDate orderDay, String employeeId);

    List<ReserveRecord> listByDate(String storeId, String projectId, java.sql.Date orderDay);

    List<ReserveRecord> listByEmployeeDatePeriod(String storeId, String projectId, Date startDay, Date endDay, String employeeId);

    List<StoreEmplee> listEmplee(String storeId);

    ReserveRecord queryReserveRecordById(String detailId);

    List<StoreProject> listStoreProjects(String storeId);
//    List<Map>  queryReserveRecord4Group(String groupId);

}
